﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Protal.Validators;
using Microhard.Core.DBUtility;

namespace Microhard.Protal.Models
{
    [FluentValidation.Attributes.Validator(typeof(SiteInfoModelValidator))]
    public class SiteInfoModel : BasePermissionModel
    {
        [Microhard.Core.DBUtility.ModelPKID]
        public Guid DataID { set; get; }
        /// <summary>
        /// 数据Key
        /// </summary>
        public string Key { set; get; }
        /// <summary>
        /// 数据Value(使用富文本编辑器编辑的页面)
        /// </summary>
        public string Value { set; get; }
        public Guid CompanyID { set; get; }
        public Guid InfoType { set; get; }
        [ModelReadTxtFromoCache(IDFieldName = "InfoType")]
        public string InfoTypeDisplay { set; get; }
        public string LinkValue { set; get; }
    }
}
